package com.sinai.mshab.extensions.search;

/**
 * This defines a database field, used in {@link DatabaseStructure}
 * @author serge
 *
 */
public class Field {
	
	private String name, type;
	
	public Field() {
		
	}
	
	/**
	 * Creates a new field defintion.
	 * @param name the name of the field
	 * @param type the type of data stored in the field.
	 */
	public Field(String name, String type) {
		this.setName(name);
		this.setType(type);
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}
}
